Skip to content
This repository has been archived by the owner on Nov 21, 2022. It is now read-only.

Commit

Permalink
Change devbookd port; Allow devbookd port customization
Browse files Browse the repository at this point in the history
  • Loading branch information
ValentaTomas committed Sep 27, 2022
1 parent d55ac23 commit 7f565d5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ export const SESSION_REFRESH_PERIOD = 5_000 // 5s
export const WS_RECONNECT_INTERVAL = 100 // 100ms

export const SESSION_DOMAIN = 'ondevbook.com'
export const WS_PORT = 8010
export const WS_PORT = 14419
export const WS_ROUTE = '/ws'
3 changes: 2 additions & 1 deletion src/session/sessionConnection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ export interface SessionConnectionOpts {
debug?: boolean
editEnabled?: boolean
__debug_hostname?: string
__debug_port?: number
__debug_devEnv?: 'remote' | 'local'
}

Expand Down Expand Up @@ -217,7 +218,7 @@ abstract class SessionConnection {
}
}

const hostname = this.getHostname(WS_PORT)
const hostname = this.getHostname(this.opts.__debug_port || WS_PORT)

if (!hostname) {
throw new Error('Cannot get session\'s hostname')
Expand Down

0 comments on commit 7f565d5

Please sign in to comment.