From 0bde7ec41bb812c4303ff1dcdf6a54a15814cbf6 Mon Sep 17 00:00:00 2001 From: PhilKunz Date: Sun, 7 Aug 2016 15:14:53 +0200 Subject: [PATCH] update README --- README.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 55b9279..74cfc34 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,8 @@ We recommend the use of typescript. ### Serverside ```typescript -import * as smartsocket from "smartsocket" +import * as smartsocket from "smartsocket"; + let mySmartsocket = new smartsocket.Smartsocket({ port: 3000 // the port smartsocket will listen on }); @@ -37,6 +38,8 @@ mySmartsocket.clientCall.select("client1","restart",data) #### Client side ```typescript +import * as smartsocket from "smartsocket"; + let mySmartsocketClient = new smartsocket.SmartsocketClient({ url: "somedomain.com", // url, note: will only work over https, no http supported. port: 3000