Samson Mutunga 1 年之前
父節點
當前提交
59542769aa
共有 2 個文件被更改,包括 2 次插入1 次删除
  1. 1 0
      config/app.php
  2. 1 1
      resources/views/app/patient/surveys/forms/form.blade.php

+ 1 - 0
config/app.php

@@ -84,6 +84,7 @@ return [
     'opentokApiKey' => env('OPENTOK_API_KEY'),
     'opentokApiKey' => env('OPENTOK_API_KEY'),
     'opentokApiSecret' => env('OPENTOK_API_SECRET'),
     'opentokApiSecret' => env('OPENTOK_API_SECRET'),
     'opentokSessionId' => env('OPENTOK_SESSION_ID'),
     'opentokSessionId' => env('OPENTOK_SESSION_ID'),
+    'socketIoUrl' => env('SOCKET_IO_URL'),
 
 
     /*
     /*
     |--------------------------------------------------------------------------
     |--------------------------------------------------------------------------

+ 1 - 1
resources/views/app/patient/surveys/forms/form.blade.php

@@ -48,7 +48,7 @@
     methods: {
     methods: {
       onFormFieldChange: function(){
       onFormFieldChange: function(){
         var self = this;
         var self = this;
-        self.socketIo = io("http://localhost:3333");
+        self.socketIo = io("{{ config('app.socketIoUrl') }}");
         self.watchInputFields();
         self.watchInputFields();
       },
       },
       watchInputFields: function(){
       watchInputFields: function(){