-
Notifications
You must be signed in to change notification settings - Fork 51
Open
Description
Right now the library has a hard dependency on org.json. This is problematic for two reasons:
- org.json has a non standard license which makes people wary
- You many times want your message to be deserialized to a bean type. Creating a
JSONObjectout of the received JSON is purely overhead.
I haven't looked very deeply into this yet but this code I have in my project does not seem very optimal:
socket.on("message", ee -> {
JSONObject json = (JSONObject) ee[0];
AbstractServerMessage message = objectMapper.readValue(json.toString(), AbstractServerMessage.class);Metadata
Metadata
Assignees
Labels
No labels