Friday, June 13, 2014

Domino WebSockets now with REST API

As of release 1.1.0
-added simple REST API for accessing the websocket server (see websocket-setup.pdf)
-updated the chat application example to use the new REST APIs (see classic note web form fmchat)
-updated JUnit tests for REST API, added a java JSON Client (make sure to setup basic auth via website rules)
-added simplified configuration. notes.ini parameters are only required for special configuration (i.e. clustering), or to override the defaults
-defaults:

WEBSOCKET_PORT=8889
WEBSOCKET_MAX_CONNECTIONS=100
WEBSOCKET_MAX_MSG_SIZE=1048576
WEBSOCKET_ENCRYPT=false
WEBSOCKET_ALLOW_ANONYMOUS=false
WEBSOCKET_CLUSTERED=false
WEBSOCKET_FILTER=null
(note: be sure to replace websocket.ntf, and chat.ntf designs on your server, and add websocket to the Domino Access Services in the server or website doc.)

download available on openntf

2 comments:

Csaba Kiss said...

I would love to see a tutorial/youtube video about this feature, if possible.

Mark Ambler said...

Hi Csaba,
If you look at the chat.nsf application there is a classic implementation of the chat using a notes form (fmchat). There you will see an example of how to use the REST APIs. I will definitely consider a video to outline the feature.