Skip to content

Can´t run some methods (enableDebug / setMaxMessageSize) #21

@spacorum

Description

@spacorum

Hello, and thanks for this awesome library! I have been working with it for a while, but found a couple problems.
I cannot find a way to enable the debug or set the max message size.
When calling this two methods (on the setup(), before the WS constructor) throws an error in Processing:

    WebsocketServer.enableDebug();
    WebsocketServer.setMaxMessageSize(200000);    
    ws = new WebsocketServer(this, 8181, "/test");

It seems it cannot launch them, it says "The function enableDebug does not exist" and "The function setMaxMessageSize does not exist". Am I missing something?

On the other hand I´m not able to call "sendMessage()" sending a byte array instead of a String. It says it has to be a String, but in the class definition there are two functions with the same name (one accepts a String, the second a byte array). How can I call the second one? Processing keeps thinking I call the first one, so it expects a String and throws an error.

Thanks in advance.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions