AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [DEV] WebSocket Server - Direct connection between webbrowser and gameserver (https://forums.alliedmods.net/showthread.php?t=182615)

Peace-Maker 01-12-2017 21:59

Re: [DEV] WebSocket Server - Direct connection between webbrowser and gameserver
 
Updated to version 1.2

This includes support for incoming fragmented frames and fixes compilation on SM 1.7.
Download in the first post.

Arkarr 01-13-2017 01:04

Re: [DEV] WebSocket Server - Direct connection between webbrowser and gameserver
 
Yay ! Thanks !

Kinsi 02-21-2017 13:17

Re: [DEV] WebSocket Server - Direct connection between webbrowser and gameserver
 
Is it somehow possible to get connection parameters (ws://host:port/path/?parameters...), and reject / "force-disconnect" clients to kinda implement authorization?

Edit: looks like, force-closing is possible but theres no built-in way to get the request path. Ill add that in and propose a PR :P

Edit2: took me way too long to find out it's easy to add but the PR's there now :) https://github.com/peace-maker/sm-websocket/pull/4

ESK0 09-05-2017 15:30

Re: [DEV] WebSocket Server - Direct connection between webbrowser and gameserver
 
Something is wrong with Websocket_Open?


Code:

SourcePawn Compiler 1.8.0.6025
Copyright (c) 1997-2006 ITB CompuPhase
Copyright (c) 2004-2015 AlliedModders LLC
 
D:\Sourcemod\WebSocket - Test\websocket_sourcetv2d (1).sp(111) : error 100: function prototypes do not match
 
1 Error.

Line 111
Quote:

g_hListenSocket = Websocket_Open(sServerIP, 12346, OnWebsocketIncoming, OnWebsocketMasterError, OnWebsocketMasterClose);

Peace-Maker 09-06-2017 11:24

Re: [DEV] WebSocket Server - Direct connection between webbrowser and gameserver
 
I'm guessing you're using the include file from the repository?
The WebsocketIncomingCB signature changed without backwards compatibility - redownload the include file from the repo.
https://github.com/peace-maker/sm-we...d7c154fe46ddd4

Papero 05-28-2018 08:36

Re: [DEV] WebSocket Server - Direct connection between webbrowser and gameserver
 
Quote:

Originally Posted by Dr. McKay (Post 2034004)
Not sure if it's supposed to support SSL, but when connecting via wss:// I get this:

Code:

[websocket.smx] Failed to extract security key.

Is there any way to support the wss:// now?
(Am getting that error too)

asherkin 05-28-2018 09:08

Re: [DEV] WebSocket Server - Direct connection between webbrowser and gameserver
 
Quote:

Originally Posted by Papero (Post 2594224)
Is there any way to support the wss:// now?
(Am getting that error too)

No.

Papero 06-22-2018 13:18

Re: [DEV] WebSocket Server - Direct connection between webbrowser and gameserver
 
Quote:

Originally Posted by asherkin (Post 2594233)
No.

To make it work with wss:// (https) would I have to edit the plugin or the Socket extension?

Peace-Maker 06-22-2018 13:45

Re: [DEV] WebSocket Server - Direct connection between webbrowser and gameserver
 
You'd need an extension that provides you with a raw socket interface that's tunneled through a TLS encrypted connection. The protocol itself doesn't change.

Papero 06-22-2018 14:17

Re: [DEV] WebSocket Server - Direct connection between webbrowser and gameserver
 
Quote:

Originally Posted by Peace-Maker (Post 2598715)
You'd need an extension that provides you with a raw socket interface that's tunneled through a TLS encrypted connection. The protocol itself doesn't change.

Atm that's out of my knowledge, if someone could write it for free or not(if so it'd be a public release) would be nice


All times are GMT -4. The time now is 13:48.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.