feat: discussions edit and delete
This commit is contained in:
@@ -5,11 +5,11 @@ import { getCachedResource } from 'frappe-ui/src/resources/resources'
|
||||
|
||||
export function initSocket() {
|
||||
let host = window.location.hostname
|
||||
let siteName = window.site_name
|
||||
let siteName = window.site_name || host
|
||||
let port = window.location.port ? `:${socketio_port}` : ''
|
||||
let protocol = port ? 'http' : 'https'
|
||||
let url = `${protocol}://${host}${port}/${siteName}`
|
||||
console.log(protocol, host, port, siteName)
|
||||
|
||||
let socket = io(url, {
|
||||
withCredentials: true,
|
||||
reconnectionAttempts: 5,
|
||||
|
||||
Reference in New Issue
Block a user