Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
bildirimleri. Web Socket sunucusunun adresi de konfigurasyon bilgisi olarak tanımlanmakta.
*/
import { SocketIoModule, SocketIoConfig } from 'ngx-socket-io';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
const config: SocketIoConfig = { url: 'http://localhost:5004' };
@NgModule({
declarations: [
AppComponent,
ArticleListComponent,
ArticleComponent
],
imports: [
BrowserModule,
// Üstte belirtilen url bilgisi ile birlikte socket modülünü hazır hale getirip içeri alıyoruz
SocketIoModule.forRoot(config),
BrowserAnimationsModule,
FormsModule
],
providers: [],
bootstrap: [AppComponent]
})
export class AppModule { }
beforeEach(async(() => {
TestBed.configureTestingModule({
imports: [ReactiveFormsModule, FormsModule, SocketIoModule.forRoot(config)],
declarations: [SettingsComponent],
providers: [
PlayerComponent,
ButtonsComponent,
PlaylistControlService,
SharedService,
GlobalsService,
SessionManagerService,
YoutubeGetVideo,
HttpClient,
HttpHandler
]
})
.compileComponents();
}));
import { ModalComponent } from './components/modal/modal.component';
import { ModalService } from './services/modal.service';
const config: SocketIoConfig = { url: environment.serverURL, options: {} };
@NgModule({
imports: [
BrowserModule,
HttpClientModule,
ReactiveFormsModule,
FormsModule,
NguCarouselModule,
AppRoutingModule,
DragDropModule,
SocketIoModule.forRoot(config)
],
declarations: [
AppComponent,
SettingsComponent,
SearchComponent,
AboutComponent,
HistoryComponent,
CategoryComponent,
PlayerComponent,
PlaylistComponent,
RelatedComponent,
RoomComponent,
YoutubeIframeComponent,
ButtonsComponent,
VideoItemComponent,
CategoryBadgeComponent,