Raised This Month: $51 Target: $400
 12% 

[ANY] Webchat through websocket


Post New Thread Reply   
 
Thread Tools Display Modes
OcC
Senior Member
Join Date: Mar 2012
Location: Romania
Old 11-02-2016 , 15:32   Re: [ANY] Webchat through websocket
Reply With Quote #41

Loading 1 chat...
server | 212:00

: SecurityError: Failed to construct 'WebSocket': An insecure WebSocket connection may not be initiated from a page loaded over HTTPS.

server | 212:00
Done !
server | 212:00
__________________
OcC is offline
Send a message via Yahoo to OcC
Arkarr
Veteran Member
Join Date: Sep 2012
Location: Just behind my PC screen
Old 11-02-2016 , 15:49   Re: [ANY] Webchat through websocket
Reply With Quote #42

Quote:
Originally Posted by OcC View Post
Loading 1 chat...
server | 212:00

: SecurityError: Failed to construct 'WebSocket': An insecure WebSocket connection may not be initiated from a page loaded over HTTPS.

server | 212:00
Done !
server | 212:00
Then remove HTTPS for this page ?

Kiding, I'll fix that asap.
__________________
Want to check my plugins ?
Arkarr is offline
TheEdgeClan.Eu
Member
Join Date: Jun 2016
Old 11-03-2016 , 11:25   Re: [ANY] Webchat through websocket
Reply With Quote #43

  • Loading 1 chat...
    server | 23:27:01


  • : SecurityError: The operation is insecure.
    server | 23:27:01


  • Done !





not sure whats going on do the port have to be 1000 or like



var servers = ["test.theedgeclan.com:27015"];
__________________
TheEdgeClan.Eu is offline
Arkarr
Veteran Member
Join Date: Sep 2012
Location: Just behind my PC screen
Old 11-03-2016 , 12:05   Re: [ANY] Webchat through websocket
Reply With Quote #44

Take a closer look to the cvar section...
__________________
Want to check my plugins ?
Arkarr is offline
TheEdgeClan.Eu
Member
Join Date: Jun 2016
Old 11-03-2016 , 13:44   Re: [ANY] Webchat through websocket
Reply With Quote #45

this is how it looks now
server.cfg
sm_wcr_websocket_port 27015

website
//EDIT THIS LIST !
var servers = ["test.theedgeclan.com:27015"];
var EnableChat = true; //true = allow chat | false = disable chat

installed web sockets and the requirement for that too
__________________

Last edited by TheEdgeClan.Eu; 11-03-2016 at 13:45.
TheEdgeClan.Eu is offline
leetgamer
Member
Join Date: Mar 2011
Old 11-03-2016 , 14:23   Re: [ANY] Webchat through websocket
Reply With Quote #46

Quote:
Originally Posted by TheEdgeClan.Eu View Post
this is how it looks now
server.cfg
sm_wcr_websocket_port 27015

website
//EDIT THIS LIST !
var servers = ["test.theedgeclan.com:27015"];
var EnableChat = true; //true = allow chat | false = disable chat

installed web sockets and the requirement for that too

think you have misunderstod Howe this work
27015 is a game server port if you dont know so its prob ocupied already by a server if im not maistaking you.
step1 chack Your firewall both at webhosting and serverhosting that port 1000 is open

step2 add in chat.js on line 4 : var servers = ["test.theedgeclan.com:1000"]

step3 then in server.cfg you put this on the end so its loaded last: sm_wcr_websocket_port 1000

step4 change map so its start working.

if you want ot add multiple servers to be locged yout add sm_wcr_websocket_port 1001 example in a New server.cfg
and change line 4 in chat.js like thgis:
var servers = ["test.theedgeclan.com:1000", "test.theedgeclan.com:1001"]
leetgamer is offline
TheEdgeClan.Eu
Member
Join Date: Jun 2016
Old 11-03-2016 , 15:04   Re: [ANY] Webchat through websocket
Reply With Quote #47

thanks
__________________
TheEdgeClan.Eu is offline
leetgamer
Member
Join Date: Mar 2011
Old 11-06-2016 , 06:50   Re: [ANY] Webchat through websocket
Reply With Quote #48

btw you have any thime table on when you releace the edition With the Things i wanted added ?
like server name on chat and red and blue color depending on witch theam Your on ingame ?

so Messages wil look like this example : Deathrun 21:10:43 Bawls: tro lo lo

Last edited by leetgamer; 11-06-2016 at 06:52.
leetgamer is offline
Arkarr
Veteran Member
Join Date: Sep 2012
Location: Just behind my PC screen
Old 11-06-2016 , 07:20   Re: [ANY] Webchat through websocket
Reply With Quote #49

No PC access right now. Don't know when I would be able to gain back acces.
__________________
Want to check my plugins ?
Arkarr is offline
Pyc
Senior Member
Join Date: Jan 2014
Old 11-08-2016 , 05:28   Re: [ANY] Webchat through websocket
Reply With Quote #50

someone does it work?
I have error in web page
Code:
Error : connection timed out.
ws://x.x.x.x:1000/
server | 13:25:30
Disconnected ! Reason : The connection was closed abnormally, e.g., without sending or receiving a Close control frame
server | 13:25:30
and error in log
Code:
L 11/08/2016 - 13:10:31: SourceMod error session started
L 11/08/2016 - 13:10:31: Info (map "c5m1_waterfront") (file "errors_20161108.log")
L 11/08/2016 - 13:10:31: [SM] Native "Websocket_Open" reported: Unable to listen on socket to x.x.x.x:1000
L 11/08/2016 - 13:10:31: [SM] Displaying call stack trace for plugin "WebsiteChatRelay.smx":
L 11/08/2016 - 13:10:31: [SM]   [0]  Line 43, C:\Users\Arkarr\AppData\Roaming\spedit\sourcepawn\scripts\WebsiteChatRelay.sp::OnAllPluginsLoaded()
L 11/08/2016 - 13:10:36: Error log file session closed.

Last edited by Pyc; 11-08-2016 at 05:29.
Pyc is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 17:20.


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