Search found 3 matches

by pepe
Mon Sep 26, 2022 7:16 pm
Forum: Plugin Development Support
Topic: Threaded websockets
Replies: 2
Views: 1974

Re: Threaded websockets

I managed to fix it, i just added this to the server.cfg:

Code: Select all

sv_hibernate_when_empty 0

Turns out that the server messes with the created threads when the server is hibernating :wink:
by pepe
Mon Sep 26, 2022 4:16 pm
Forum: Plugin Development Support
Topic: Threaded websockets
Replies: 2
Views: 1974

Threaded websockets

I'm trying to make a plugin that makes a websocket connection with a server. The problem: the websocket connection doesn't work if its executed within a thread, but the interesting thing is that when i unload the plugin it kinda connects to the server but that is useless since the plugin is shut dow...
by pepe
Thu Aug 12, 2021 6:21 pm
Forum: Plugin Development Support
Topic: Can't retrieve url from TypedCommand
Replies: 1
Views: 2242

Can't retrieve url from TypedCommand

When i use TypedSayCommand i cant validate a url param because the function only receives the string until the // part https://i.ibb.co/BfTmBJH/Screenshot-44.png class Validator: @staticmethod def valid_url(value): regex = r"[-a-zA-Z0-9@:%._\+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b([-a-zA-Z0-9()@:%_\...

Go to advanced search