File tree Expand file tree Collapse file tree 5 files changed +8
-8
lines changed Expand file tree Collapse file tree 5 files changed +8
-8
lines changed Original file line number Diff line number Diff line change 11module . exports = {
22 "config" : {
33 "apiKey" : "2061acef-0451-4545-f754-60cf8160" ,
4- "organization_Id " : "5ff747727005da1c272740ab" ,
4+ "organization_id " : "5ff747727005da1c272740ab" ,
55 "host" : "general.cocreate.app"
66 } ,
77
Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ <h1>Result</h1>
4646 < script >
4747 var config = {
4848 apiKey : 'c2b08663-06e3-440c-ef6f-13978b42883a' ,
49- organization_Id : '5de0387b12e200ea63204d6c'
49+ organization_id : '5de0387b12e200ea63204d6c'
5050 }
5151
5252 </ script >
Original file line number Diff line number Diff line change @@ -102,7 +102,7 @@ <h4 class="margin-top:20px padding:5px_0px">Client side</h4>
102102 < pre > < code class ="language-javascript ">
103103 var config = {
104104 apiKey: 'c2b08663-06e3-440c-ef6f-13978b42883a',
105- organization_Id : '5de0387b12e200ea63204d6c',
105+ organization_id : '5de0387b12e200ea63204d6c',
106106 host: 'localhost:8081'
107107 }
108108 </ code > </ pre >
Original file line number Diff line number Diff line change @@ -154,7 +154,7 @@ const CoCreateApi = {
154154 getCommonParams : function ( info ) {
155155 return {
156156 "apiKey" : info . apiKey || config . apiKey ,
157- "organization_id" : info . organization_id || config . organization_Id ,
157+ "organization_id" : info . organization_id || config . organization_id ,
158158 "host" : info . host || config . host
159159 } ;
160160 }
Original file line number Diff line number Diff line change @@ -46,14 +46,14 @@ var api = ( ()=> {
4646 var socket_config = {
4747 "config" : {
4848 "apiKey" : config [ "config" ] [ "apiKey" ] ,
49- "organization_Id " : config [ "config" ] [ "organization_id" ] ,
49+ "organization_id " : config [ "config" ] [ "organization_id" ] ,
5050 } ,
5151 "prefix" : "ws" ,
5252 "host" : "server.cocreate.app:8088"
5353 } ;
5454
5555 socket . create ( {
56- namespace : socket_config . config . organization_Id ,
56+ namespace : socket_config . config . organization_id ,
5757 room : null ,
5858 host : socket_config . host
5959 } )
@@ -80,15 +80,15 @@ var api = ( ()=> {
8080 var socket_config = {
8181 "config" : {
8282 "apiKey" : org [ "apiKey" ] ,
83- "organization_Id " : org [ "_id" ] . toString ( ) ,
83+ "organization_id " : org [ "_id" ] . toString ( ) ,
8484 } ,
8585 "prefix" : "ws" ,
8686 "host" : "server.cocreate.app:8088"
8787 }
8888
8989 //other connection
9090 socket . create ( {
91- namespace : socket_config . config . organization_Id ,
91+ namespace : socket_config . config . organization_id ,
9292 room : null ,
9393 host : socket_config . host
9494 } )
You can’t perform that action at this time.
0 commit comments