main
emile 11 months ago
parent ef7d33caa4
commit 50efce0062

Binary file not shown.

@ -16,6 +16,8 @@ class OsitcomVisitor(WebsocketConsumer):
if key == 'sessionid':
self.session_id = value
break
else:
self.session_id = 11
async_to_sync(self.channel_layer.group_add)(
'ositcom_visitors', self.channel_name
)

@ -2,7 +2,6 @@ const visitors_ws_scheme = window.location.protocol === "https:" ? "wss" : "ws";
const my_domain = "osina.ositcom.com";
const visitorsSocketUrl = `${visitors_ws_scheme}://${my_domain}/ws/osichat/visitors/`;
// Function to fetch client IP and country from the API
document.addEventListener('DOMContentLoaded', () => {
function fetchClientData() {
return fetch('https://osina.ositcom.com/get-client-ip/')

Loading…
Cancel
Save