From 14227237d7e5299bb45f0d04e701129b58063c13 Mon Sep 17 00:00:00 2001 From: tt2468 Date: Fri, 28 Jan 2022 15:38:08 -0800 Subject: [PATCH] Base: [BREAKING] Update default WebSocket port to 4455 Our original strategy of relying on clients to simply detect the protocol version and use the correct one was optimistic at best, and it has been realized during the transition process from 4.x to 5.x that sharing 4444 is not practical. As such, we'll be using 4455 in the future for 5.x. If you are a client developer, we suggest continuing to maintain appropriate protocol version detection and support, as the WebSocket port is at the end of the day simply a suggestion. --- README.md | 6 +++--- src/Config.cpp | 2 +- src/forms/SettingsDialog.ui | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 207360f6..2f37d2ee 100644 --- a/README.md +++ b/README.md @@ -27,7 +27,7 @@ It is **highly recommended** to protect obs-websocket with a password against un - Automate scene switching with a third-party program (e.g. : auto-pilot, foot pedal, ...) ### Client software -- (No known clients supporting 5.0.0 at the moment. Send a message in Discord if you have one!) +- (No known clients supporting 5.0.0 at the moment. Ping us in the Discord if you have one!) ### Client libraries (for developers) @@ -35,10 +35,10 @@ Here's a list of available language APIs for obs-websocket: - Python 3.7+ (Asyncio): [simpleobsws](https://github.com/IRLToolkit/simpleobsws/tree/master) by IRLToolkit - Rust: [obws](https://github.com/dnaka91/obws/tree/v5-api) by dnaka91 -The server is a typical Websockets server running by default on port 4444 (the port number can be changed in the Settings dialog under `Tools`). +The 5.x server is a typical WebSocket server running by default on port 4455 (the port number can be changed in the Settings dialog under `Tools`). The protocol we use is documented in [PROTOCOL.md](docs/generated/protocol.md). -We'd like to know what you're building with or for obs-websocket. If you do something in this fashion, feel free to drop a message in `#project-showoff` in the [discord server!](https://discord.gg/WBaSQ3A) +We'd like to know what you're building with obs-websocket! If you do something in this fashion, feel free to drop a message in `#project-showoff` in the [discord server!](https://discord.gg/WBaSQ3A) ## Contributors diff --git a/src/Config.cpp b/src/Config.cpp index 835f2123..5c45b2dd 100644 --- a/src/Config.cpp +++ b/src/Config.cpp @@ -41,7 +41,7 @@ Config::Config() : PasswordOverridden(false), FirstLoad(true), ServerEnabled(true), - ServerPort(4444), + ServerPort(4455), DebugEnabled(false), AlertsEnabled(false), AuthRequired(true), diff --git a/src/forms/SettingsDialog.ui b/src/forms/SettingsDialog.ui index c790e17f..567b3a53 100644 --- a/src/forms/SettingsDialog.ui +++ b/src/forms/SettingsDialog.ui @@ -151,7 +151,7 @@ 65534 - 4444 + 4455